package org.pok.sort;

import java.util.List;

public class PivotStrategy {

  private PivotStrategy() {
  }

  public static Pivot choosePivot(List<Item> list) {
    if (list == null) {
      throw new NullPointerException();
    }
    if (0 == list.size()) {
      throw new IndexOutOfBoundsException();
    }
    return new Pivot(list.get(0));
  }

}
